package com.pkk.penguin.frame.know.java.Javacoreknowledge.exception;

import org.junit.Test;

/**
 * 异常测试
 *
 * @author peikunkun
 * @version V1.0
 * @date 2021-03-23 13:59
 **/
public class ExceptionSimple1 {


  @Test
  public void Administrator_14_20210323140004_() {
    System.out.println("欢迎使用单元测试方法【Administrator_14()_20210323140004】");
    System.out.println("此方法测试描述：【】");

    try {
      int i = 1 / 0;
    } catch (ArithmeticException e1) {
      System.out.println("----1" + e1);
    } catch (Exception e) {
      System.out.println("----2" + e);
      e.printStackTrace();
    }
  }

}
